package com.twetec.cms.model.vo.website;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel
public class FileInfoVO  implements Serializable {

    @ApiModelProperty(value = "是否文件夹:1是,0不是", example = "0")
    private Integer isDir;

    @ApiModelProperty(value = "文件或文件夹名称", example = "index")
    private String fileName;

    @ApiModelProperty(value = "文件或文件夹长度", example = "123456")
    private Long size;

    @ApiModelProperty(value = "文件或文件夹后缀名", example = "html")
    private String ext;

    @ApiModelProperty(value = "绝对路径", example = "c://Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String absolutePath;

    @ApiModelProperty(value = "相对路径", example = "c://Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String relativePath;

    @ApiModelProperty(value = "访问路径", example = "http://127.0.0.1/M00/00/22/Chfek1-PzZGEbWhNAAAAAJqogLo980.txt")
    private String url;

    public Integer getIsDir() {
        return isDir;
    }

    public void setIsDir(Integer isDir) {
        this.isDir = isDir;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getAbsolutePath() {
        return absolutePath;
    }

    public void setAbsolutePath(String absolutePath) {
        this.absolutePath = absolutePath;
    }

    public String getRelativePath() {
        return relativePath;
    }

    public void setRelativePath(String relativePath) {
        this.relativePath = relativePath;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return "FileInfoVO{" +
                "isDir=" + isDir +
                ", fileName='" + fileName + '\'' +
                ", size=" + size +
                ", ext='" + ext + '\'' +
                ", absolutePath='" + absolutePath + '\'' +
                ", relativePath='" + relativePath + '\'' +
                ", url='" + url + '\'' +
                '}';
    }
}
